import sys

_apiPath = 'C:\Data\package\Skype4Py-1.0.31.0'
_apiPathLin = '/dos/library/Skype4Py/Skype4Py-1.0.31.0'

sys.path.append(_apiPath)
sys.path.append(_apiPathLin)

import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer
import Skype4Py
import SocketServer
	
def onCall( call, status):
		if status == 'RINGING' :
			result = proxy.callAlert();	
			print result
	
def start():
	skype.Attach()
	skype.OnCallStatus = onCall
	pass		

proxy = xmlrpclib.ServerProxy('http://localhost:8888/')
skype = Skype4Py.Skype()

if __name__ == '__main__' :
	start()	
	while True :
		pass